package com.ruoci.redis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;


/**
 * @author yanglingjun
 */
@Data
@Table(name = "users")
public class Users {

    private static final long serialVersionUID = 1L;

    /**
     * 人员代码
     */
    @TableId(value = "user_code", type = IdType.AUTO)
    @Column(name="user_code")
    private String userCode;

    /**
     * 人员姓名
     */@Column(name="user_name")
    private String userName;

    /**
     * 密码
     */
    @Column(name="encrypted_password")
    private String encryptedPassword;

    /**
     * 性别
     */
    @Column(name="gender")
    private String gender;

    /**
     * 手机号码
     */
    @Column(name="mobile_phone")
    private String mobilePhone;

    /**
     * 手机已验证
     */
    @Column(name="mobile_verified")
    private String mobileVerified;

    /**
     * 邮件地址
     */
    @Column(name="email_addr")
    private String emailAddr;

    /**
     * 密码修改时间
     */
    @Column(name="pwd_modified_time")
    @JsonFormat
    private Date pwdModifiedTime;

    /**
     * 邮箱已验证
     */
    @Column(name="email_verified")
    private String emailVerified;

    /**
     * 直属领导
     */
    @Column(name="immediate_leader")
    private String immediateLeader;

    /**
     * 证件类型
     */
    @Column(name="card_type")
    private String cardType;

    /**
     * 证件号
     */
    @Column(name="card_no")
    private String cardNo;

    /**
     * 展示顺序
     */
    @Column(name="display_order")
    private Integer displayOrder;

    /**
     * 创建时间
     */
    @Column(name="create_time")
    @JsonFormat
    private Date createTime;

    /**
     * 描述信息
     */
    @Column(name="user_description")
    private String userDescription;

    /**
     * 人员状态
     */
    @Column(name="user_status")
    private String userStatus;

    /**
     * 所属租户
     */
    @Column(name="tenant_id")
    private String tenantId;


}
